package day_04;

import java.util.Scanner;

/**
 * @ClassName Test01
 * @Description TODO
 * @Author hp
 * @Date 2021/6/4 20:40
 * @Version 1.0
 **/
public class Test01 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        char[] chars = new char[26];
        int c = 97;
        for (int i = 0; i < chars.length; i++) {
            chars[i] = (char) c;
            c++;
        }
        for (int i = 0; i < chars.length; i++) {
            System.out.println(chars[i] + "->" + (char) (chars[i] - 32));
        }
        /*int[] ages = new int[6];
        for (int i = 0; i < ages.length; i++) {
            System.out.print("请输入学员年龄:");
            ages[i] = in.nextInt();
        }
        for (int age : ages) {
            System.out.println(age);
        }*/
        /*String[] names = new String[6];
        for (int i = 0; i < names.length; i++) {
            System.out.print("请输入学员姓名:");
            names[i] = in.next();
        }
        for (String name : names
        ) {
            System.out.println(name);
        }*/
        /*String[] words = new String[]{"Monday", "tuesday", "wednesday", "tuesday", "friday", "saturday", "sunday"};
        int num;
        while (true) {
            System.out.println("请输入1-7中的一个数字:");
            num = in.nextInt();
            if (num >= 1 && num <= 7) {
                break;
            } else {
                System.out.println("输入非法,请重新输入");
            }
        }
        System.out.println(words[num - 1]);*/
        /*int[] months = new int[]{31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
        System.out.println("请输入年:");
        int year = in.nextInt();
        System.out.println("请输入月:");
        int month = in.nextInt();
        System.out.println("请输入日:");
        int days = in.nextInt();
        int sum = 0;
        for (int i = month - 2; i >= 0; i--) {
            sum += months[i];
        }
        sum += days;
        if (month>2&&year % 4 == 0 && year % 100 != 0 || year % 400 == 0)
            sum++;
        System.out.println(sum);*/
        /*System.out.println("请输入年:");
        int year = in.nextInt();
        System.out.println("请输入月:");
        int month = in.nextInt();
        System.out.println("请输入日:");
        int days = in.nextInt();
        int sum = 0;
        for (int i = 1990; i <= year - 1; i++) {
            if (i % 4 == 0 && i % 100 != 0 || i % 400 == 0) {
                sum += 366;
            } else {
                sum += 365;
            }
        }
        int[] months = new int[]{31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
        for (int i = month - 2; i >= 0; i--) {
            sum += months[i];
        }
        sum += days;
        if (month > 2 && year % 4 == 0 && year % 100 != 0 || year % 400 == 0)
            sum++;

        if (sum % 5 ==1||sum % 5 ==2||sum % 5 ==3) {
            System.out.println("筛网");
        } else {
            System.out.println("打鱼");
        }*/

    }

}
